package com.bishe.bishe.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Date;

public class Detail implements Serializable {

    private String speciesName;
    private int orderdetailNumber;
    private int unitName;
    private Double price;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ordertime;

    private String taketime;
    private String express;
    private String location;
    private String number;
    private String speciesImg;
    private String remarks;
    private int identify;

    public int getIdentify() {
        return identify;
    }

    public void setIdentify(int identify) {
        this.identify = identify;
    }

    public Detail(String speciesName, int orderdetailNumber, int unitName, Double price, Date ordertime, String taketime, String express, String location, String number, String speciesImg, String remarks, int identify) {
        this.speciesName = speciesName;
        this.orderdetailNumber = orderdetailNumber;
        this.unitName = unitName;
        this.price = price;
        this.ordertime = ordertime;
        this.taketime = taketime;
        this.express = express;
        this.location = location;
        this.number = number;
        this.speciesImg = speciesImg;
        this.remarks = remarks;
        this.identify = identify;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getTaketime() {
        return taketime;
    }

    public void setTaketime(String taketime) {
        this.taketime = taketime;
    }

    public String getSpeciesImg() {
        return speciesImg;
    }

    public void setSpeciesImg(String speciesImg) {
        this.speciesImg = speciesImg;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Detail() {
    }

    public String getSpeciesName() {
        return speciesName;
    }

    public void setSpeciesName(String speciesName) {
        this.speciesName = speciesName;
    }

    public int getOrderdetailNumber() {
        return orderdetailNumber;
    }

    public void setOrderdetailNumber(int orderdetailNumber) {
        this.orderdetailNumber = orderdetailNumber;
    }

    public int getUnitName() {
        return unitName;
    }

    public void setUnitName(int unitName) {
        this.unitName = unitName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Date getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(Date ordertime) {
        this.ordertime = ordertime;
    }


    public String getExpress() {
        return express;
    }

    public void setExpress(String express) {
        this.express = express;
    }
}
